# Update by : ashmer@byhh(talebook@gmail.com)
# This file is generated manually by NetXRay@byhh.
# It isn't very elagent. Don't mock me :)

CC		= gcc
FLAGS	= -O2
LINKFLAG= -lnet -lpcap #-static #by default, we make a static-linked program.
OUTPUT	= ./
NAME	= mystar

all:	mystar

mystar: mystar.o md5.o myerr.o blog.o sendpacket.o
	$(CC) $(FLAGS) -o $(OUTPUT)$(NAME)  $^ $(LINKFLAG)

md5.o:   md5.c md5.h
	$(CC) $(FLAGS) -o $@ -c $<

myerr.o: myerr.c myerr.h
	$(CC) $(FLAGS) -o $@ -c $<

blog.o:  blog.c blog.h  myerr.h
	$(CC) $(FLAGS) -o $@ -c $<

sendpacket.o: sendpacket.c sendpacket.h md5.h global.h blog.h
	$(CC) $(FLAGS) -o $@ -c $<

mystar.o: mystar.c mystar.h sendpacket.h myerr.h blog.h global.h
	$(CC) $(FLAGS) -o $@ -c $<

.PHONY : clean rebuild
clean:
	-rm -f *.o $(OUTPUT)$(NAME)

rebuild:
	make clean all

debug:	FLAGS = -ggdb -Wall
debug:	all
